<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>登陆</title>
    @include('admin.components.header')
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登陆</h3>
                </div>
                <div class="panel-body">
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <strong>警告：</strong>
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    {!! Form::open(['url' => '/auth/login', 'role' => 'from', 'method' => 'post']) !!}
                    <fieldset>
                        <div class="form-group">
                            {!! Form::text('name', null, ['class' => 'form-control', 'autofocus' => 'autofocus','placeholder'=>'请输入用户名']) !!}
                        </div>
                        <div class="form-group">
                            {!! Form::password('password', ['class' => 'form-control','placeholder'=>'请输入密码']) !!}
                        </div>
                        <div class="checkbox">
                            <label>
                                {!! Form::checkbox('remember', null) !!}记住我
                            </label>
                        </div>
                        <div class="form-group">
                            {!! Form::submit('Login', ['class' => 'btn btn-lg btn-success btn-block']) !!}
                        </div>
                    </fieldset>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
</div>
@include('admin.components.footer')
</body>
</html>
